
using System.Collections.Generic;
using com.tc.util;
using com.tc.zigbee.zcl;
namespace com.tc.zigbee.zcl.command{
    public class SceneMemberResponse : AbstractZclCommand
    {
        public byte getStatus()
        {
            return status;
        }
        public short getGroupId()
        {
            return groupId;
        }
        byte status;
        byte capacity;
        short groupId;

        List<byte> membership = new List<byte>();
        public SceneMemberResponse(byte[] data)
        {
            status = data[0];
            capacity = data[1];
            byte[] ai = new byte[2];
            ai[0] = data[2];
            ai[1] = data[3];
            groupId = DataUtil.shortValue(ai);

            byte c = data[4];
            for (int i = 0; i < c; i++)
            {
                membership.Add(data[5 + i]);
            }



        }
        public byte getCapacity()
        {
            return capacity;
        }
        public List<byte> getMembership()
        {
            return membership;
        }
    }
}
